import request from '../utils/request';
import host from '../utils/constant';

export async function listAll(params) {
  const requestUrl = `${host}/hot/listAll?type=${params.type}`;
  return request(requestUrl);
}

export async function listType(){
  const requestUrl = `${host}/hot/listType`;
  return request(requestUrl);
}
